package cn.wolfcode.luowowo.search.service.impl;

import cn.wolfcode.luowowo.search.domain.FlightInfo;
import cn.wolfcode.luowowo.search.mapper.FlightInfoMapper;
import cn.wolfcode.luowowo.search.service.IFlightInfoService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class FlightInfoServiceImpl implements IFlightInfoService{
    @Autowired
    private FlightInfoMapper flightInfoMapper;

    @Override
    public void save(FlightInfo flightInfo) {
        flightInfoMapper.insert(flightInfo);
    }

    @Override
    public FlightInfo selectByOrgCityAndDstCity(String orgCity,String dstCity) {
        return flightInfoMapper.selectByOrgCityAndDstCity(orgCity,dstCity);
    }
}
